package cn.daixi.web.common.exception;

public class ValidateException extends RuntimeException{
    private int code;
    public ValidateException() {
        super();
    };
    public ValidateException(String message) {
        super(message);
        code = 400;
    }

    public ValidateException(String message, int statusCode) {
        super(message);
        this.code = statusCode;
    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
